home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Sessions / Why Java Sucks / Newton11 / IdleTask.java < prev    next >
Encoding:
Java Source  |  1998-03-13  |  330 b   |  21 lines  |  [TEXT/R*ch]

  1. /*
  2.     IdleTask.java - Interface for an object with an idle or periodic task.
  3. */
  4.  
  5. /** Interface for an object with an idle or periodic task.
  6.  */
  7. public interface IdleTask
  8. {
  9.     /** Start the task.
  10.      */
  11.     public void startTask();
  12.  
  13.     /** Stop the task.
  14.      */
  15.     public void stopTask();
  16.  
  17.     /** Perform the idle task.
  18.      */
  19.     public void idle();
  20. }
  21.